/* styles.css - overlay and toast */

.xhsd-overlay {
  z-index: 999999;
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.xhsd-bar-wrap {
  width: 160px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.xhsd-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff2442, #ff7a59);
  transition: width 0.15s ease;
}

.xhsd-label {
  font-size: 12px;
  min-width: 32px;
  text-align: right;
}

.xhsd-error .xhsd-bar {
  background: #d93025;
}

.xhsd-toast {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999999;
}

.xhsd-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
